package com.itheima.递归.不死神兔;

public class Demo {
    public static void main(String[] args) {
        int mouth = 40;
        int num = getCount(mouth);
        System.out.println(num);
    }

    private static int getCount(int mouth) {
        if (mouth == 1 || mouth == 2) {
            return 1;
        } else {
            return getCount(mouth - 1) + getCount(mouth - 2);
        }
    }
}
